﻿using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using Moon.Orm;
namespace czc
{

    [Table("[V_User]", DbType.SqlServer)]
    public class V_User : EntityBase
    {
        public String UserId
        {
            get { return GetPropertyValue<String>("UserId"); }
            set { SetPropertyValue("UserId", value); }
        }
        public String UserName
        {
            get { return GetPropertyValue<String>("UserName"); }
            set { SetPropertyValue("UserName", value); }
        }
        public String GroupName
        {
            get { return GetPropertyValue<String>("GroupName"); }
            set { SetPropertyValue("GroupName", value); }
        }
        public Boolean? IsEnable
        {
            get { return GetPropertyValue<Boolean?>("IsEnable"); }
            set { SetPropertyValue("IsEnable", value); }
        }
    }

    [Table("[V_User]", DbType.SqlServer)]
    public class V_UserSet : MQLBase
    {
        public static new MQLBase Select(params FieldBase[] fields)
        {
            return MQLBase.Select(DbType.SqlServer,"[V_User]",fields);
        }
        public static new MQLBase SelectAll()
        {
            return MQLBase.SelectAll(DbType.SqlServer,"[V_User]");
        }
        public static readonly FieldBase UserId = new FieldBase(DbType.SqlServer, "[V_User]", FieldType.Common, "[UserId]");
        public static readonly FieldBase UserName = new FieldBase(DbType.SqlServer, "[V_User]", FieldType.Common, "[UserName]");
        public static readonly FieldBase GroupName = new FieldBase(DbType.SqlServer, "[V_User]", FieldType.Common, "[GroupName]");
        public static readonly FieldBase IsEnable = new FieldBase(DbType.SqlServer, "[V_User]", FieldType.Common, "[IsEnable]");
    }

}
